-- GENERATED SPELL FOR [Boulderfist Shaman] --


function spell0_2570(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_2570', 3000, 1)
end

function spell1_2570(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2570', 3000, 1)
end

function spell2_2570(pUnit, Event) --@Searing Totem,Self--
pUnit:FullCastSpellOnTarget(6364,pUnit)
pUnit:RegisterEvent('Sorts_2570', 40333, 1)
end

function Sorts_2570(pUnit, Event)
local choix_sorts_2570 = math.random(0, 2)
if choix_sorts_2570 == 0 then
pUnit:RegisterEvent('spell0_2570', 1, 1)
end
if choix_sorts_2570 == 1 then
pUnit:RegisterEvent('spell1_2570', 1, 1)
end
if choix_sorts_2570 == 2 then
pUnit:RegisterEvent('spell2_2570', 1, 1)
end
end

function mob2570_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2570', math.random(1500, 3000), 1)
end

function mob2570_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2570_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2570_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2570, 1, 'mob2570_Action')
RegisterUnitEvent(2570, 2, 'mob2570_Leave')
RegisterUnitEvent(2570, 3, 'mob2570_Kill')
RegisterUnitEvent(2570, 4, 'mob2570_Die')
